package com.atguigu.teach.jvm;

import java.net.URL;
import java.util.HashMap;

/**
 * @auther zzyy
 * @create 2021-08-05 17:14
 */
public class JVMDemo01
{
    public static void main(String[] args)
    {
        /*Object o = new Object();//java 自带的祖宗类
        System.out.println(o.getClass().getClassLoader());

        System.out.println();
        System.out.println();

        JVMDemo01 jvmDemo01 = new JVMDemo01(); //我们自己写的类
        System.out.println(jvmDemo01.getClass().getClassLoader().getParent().getParent());
        System.out.println(jvmDemo01.getClass().getClassLoader().getParent());
        System.out.println(jvmDemo01.getClass().getClassLoader());*/

        URL[] urLs = sun.misc.Launcher.getBootstrapClassPath().getURLs();
        for (URL element : urLs) {
            System.out.println(element.toExternalForm());
        }

        new HashMap<>();
    }
}

